package com.study.mike.spring.sample.create;

import com.study.mike.spring.service.CombatService;
import com.study.mike.spring.service.LoveService;
import com.study.mike.spring.service.LoveServiceImpl;
import org.springframework.stereotype.Component;

@Component
public class LoveServiceFactory {

	public static LoveService getLoveServiceFromStaticFactoryMethod() {
		return new LoveServiceImpl();
	}

	public CombatService getCombatServiceFromFactoryMethod(int time) {
		return new CombatService(time);
	}
}
